package test;

public class Compare {
	String number1;
	String number2;
	

	public Compare() {
		super();
	}
	
	public Compare(String number1, String number2) {
		super();
		this.number1 = number1;
		this.number2 = number2;
	}

	public void charcompare(){
		if (number1==null || number2==null) {
			try {
				throw new NullPointerException();
			} catch (NullPointerException e) {
				e.printStackTrace();
			}
			
		}	
	}

	public static void main(String[] args) {
		Compare compare=new Compare(null, "sdadsada");
		compare.charcompare();
	}

}